import React from 'react';
import {NavLink,Outlet} from 'react-router-dom';
import {activeProps} from '../utils';
function User(){
    return (
        <div>
            <ul>
                <li><NavLink to='/user/list' {...activeProps}>用户列表</NavLink></li>
                <li><NavLink to='/user/add' {...activeProps}>添加用户</NavLink></li>
            </ul>
            <Outlet/>
        </div>
    )
}
export default User;